AllowOrderBy

Sorts entries in the list by the values in the column.

Values
  • true. Enables sorting.
  • false. Disables sorting.
Example

CaseListBlock = CRM.GetBlock('CaseListBlock');
FoundIn = CaseListBlock.AddGridCol('Case_FoundVer');
FoundIn.AllowOrderBy = true;
CRM.AddContent(CaseListBlock.Execute());
Response.Write(CRM.GetPage());

Adds a new column (Case_FoundVer) to the list and sorts entries in the list by that column.